package com.gollum.web.controller.monitor;

import com.gollum.common.domain.response.RestResponse;
import com.gollum.web.service.ServerMonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统服务监控controller
 *
 * @author Herther
 * @createTime 2022年10月21日 20:28:00
 * @since 1.0.0
 */
@Api(tags = "系统监控中心-服务信息")
@RestController
@RequestMapping("/server")
public class SysServerController {


    @Autowired
    protected ServerMonitorService serverMonitorService;


    @GetMapping("/get")
    @ApiOperation(value= "获取服务信息")
    public RestResponse getServerInfo() {
        return RestResponse.success(serverMonitorService.getServerInfo());
    }

}
